﻿using UnityEngine;
using System.Collections;

public class TestNetwork : MonoBehaviour
{
    // Use this for initialization
    void Start()
    {
        NetworkModule.Instance.Init();
        NetworkModule.Instance.OnRecvMessage = OnRecvMsg;
    }

    // Update is called once per frame
    void Update()
    {

    }

    void OnRecvMsg(Message data){
        Debug.Log("recv:"+data.content+"<--->"+data.nickname);
    }
}
